package cn.edu.bistu.accesswordsapp;

import android.net.Uri;
import android.provider.BaseColumns;

public class Words {

    public static final String AUTHORITY = "cn.edu.Bistu.wordsprovider";

    public Words() {
    }

    public static abstract class Word implements BaseColumns {
        public static final String TABLE_NAME = "words";  //表名
        public static final String COLUMN_WORD = "word";  //列,单词
        public static final String COLUMN_MEANING = "meaning";  //列,单词含义
        public static final String COLUMN_SAMPLE = "sample";  //例句

        //MIME类型
        public static final String MIME_DIR_PREFIX = "vnd.android.cursor.dir";
        public static final String MIME_ITEM_PREFIX = "vnd.android.cursor.item";
        public static final String MIME_ITEM = "vnd.bistu.cs.se.word";

        public static final String MINE_TYPE_SINGLE = MIME_ITEM_PREFIX + "/" + MIME_ITEM;
        public static final String MINE_TYPE_MULTIPLE = MIME_DIR_PREFIX + "/" + MIME_ITEM;

        public static final String PATH_SINGLE = "word/#";  //单条数据路径
        public static final String PATH_MULTIPLE = "word";  //多条数据路径

        //Content Uri
        public static final String CONTENT_URI_STRING = "content://" + AUTHORITY + "/" + PATH_MULTIPLE;
        public static final Uri CONTENT_URI = Uri.parse(CONTENT_URI_STRING);

    }

}
